package com.oop.example.processing;

import com.oop.example.work.bel.EntryHandler;
import com.oop.example.work.bel.ParseError;
import com.oop.example.xml.ObjectFactory;

/**
 *
 * @author -
 */
public abstract class Parser {

    protected EntryHandler handler;
    protected ObjectFactory factory = new ObjectFactory();

    public void setHandler(EntryHandler handler) {
        this.handler = handler;
    }

    public abstract String getEntryType();

    public abstract String getDescription();

    public abstract boolean isApplicable();

    public abstract void parse() throws ParseError;
}
